﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Runtime.Serialization;
using nwrole.toolbox.sync.extensions;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;

namespace nwrole.toolbox.sync.contract
{
    [DataContract]
    public class SyncCommandEnvelope
    {

        [DataMember]
        public string ClientCode { get; set; }

        [DataMember]
        public string MessageType { get; set; }

        [DataMember]
        public String Schema { get; set; }

        [DataMember]
        public byte[] Bytes { get; set; }

        [DataMember]
        public SerializationEnum SerializationType { get; set; }

        [DataMember]
        public Guid MsgCorr { get; set; }

        public enum SerializationEnum
        {
            DataTable,
            Reader
        }

        public SyncCommandEnvelope()
        {
        }

    }
}
